package la.iok.hzsvn.lewin.movie.mapper;

import la.iok.hzsvn.lewin.movie.entity.KeyValue;
import la.iok.hzsvn.lewin.mybatis.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

public interface KeyValueMapper extends BaseMapper<KeyValue> {
    /**
     * 更新值
     * @param key 键
     * @param value 值
     * @return 更新的记录数
     */
    @Update("update `KeyValue` set `value`=#{value} where `key`=#{key}")
    int update(String key,String value);
}
